package com.ihr360.excel.vo;

import java.io.InputStream;
import java.io.Serializable;
import java.util.Date;

public class BinaryFile implements Serializable {
    private final String id;
    private final String filename;
    private final String contentType;
    private final long length;
    private final Date uploadDate;
    private final String md5;
    private final InputStream inputStream;



    public BinaryFile(String id, String filename, String contentType, long length, Date uploadDate, String md5, InputStream inputStream) {
        this.id = id;
        this.filename = filename;
        this.contentType = contentType;
        this.length = length;
        this.uploadDate = uploadDate;
        this.md5 = md5;
        this.inputStream = inputStream;
    }



    public String getId() {
        return this.id;
    }

    public String getFilename() {
        return this.filename;
    }

    public String getContentType() {
        return this.contentType;
    }

    public long getLength() {
        return this.length;
    }

    public Date getUploadDate() {
        return this.uploadDate;
    }

    public String getMd5() {
        return this.md5;
    }

    public InputStream getInputStream() {
        return this.inputStream;
    }
}